package com.niodata.dp.core.usermgr.model;

import com.niodata.dp.collection.WrappedMap;

public class GroupProfile {

  private long groupId;
  private String type;
  private WrappedMap profiles;

  public long getGroupId() {
    return groupId;
  }

  public void setGroupId(long groupId) {
    this.groupId = groupId;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public WrappedMap getProfiles() {
    return profiles;
  }

  public void setProfiles(WrappedMap profiles) {
    this.profiles = profiles;
  }

  public String getSetting(String key) {
    Object obj = profiles.getMap().get(key);
    return obj != null ? obj.toString() : null;
  }
}
